Declaration = "DecToHex(b10&) As Variant|InStrRev(HayStk$, Needle$) As Integer|strrev(stparm$)|TypeTestStk(fnd%, lng&,sng!, rl#, st$, fnd2 as integer, lng2 as long, sng2 as single, rl2 as double, st2 as string, StToDate As Variant, DateToSt As Variant) as string|UnloadVbLib(AutoStarted%)|HexToDec (hx$) As Variant||"
Left = 3444
Top = 264
End
Begin FUNCTION VBFunctionCallCtl
Declaration = "ShowForm()|TypeTest$ (fnd%, lng&, sng!, rl#, st$, fnd2 As Integer, lng2 As Long, sng2 As Single, rl2 As Double, st2 As String, stlen As String * 10, StToDate As Variant, DateToSt As Variant)||"
Left = 456
Top = 216
End
Begin ListBox List1
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 6.6
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 3456
Left = 72
TabIndex = 0
Top = 852
Width = 5172
End
Begin Menu mnuCallProc1
Caption = "&Clear"
End
Begin Menu mnuTest
Caption = "&Test"
End
End
Sub Form_Load ()
'if running under vb, display
Dim te As TASKENTRY
te.dwSize = Len(te)
bok% = TaskFindHandle(te, GetCurrentTask())
If bok% = False Then Exit Sub
If Left$(te.szModule, 3) = "VB" + Chr$(0) Then Me.Show
End Sub
Sub Form_Unload (Cancel As Integer)
If RecFormLoaded = True Then
Unload Form2
End If
End
End Sub
Sub mnuCallProc1_Click ()
List1.Clear
End Sub
Sub mnuTest_Click ()
rv = HexToDec("f001")
End Sub
Sub ShowForm ()
Form2.Show
End Sub
Sub Timer1_Timer ()
timer1.Enabled = True
Unload Me
End
End Sub
Function TypeTestStk$ (fnd%, lng&, sng!, rl#, st$, fnd2 As Integer, lng2 As Long, sng2 As Single, rl2 As Double, st2 As String, StToDate, DateToSt)
List1.AddItem Str$(fnd%)
List1.AddItem Str$(lng&)
List1.AddItem Str$(sng!)
List1.AddItem Str$(rl#)
List1.AddItem st$
List1.AddItem Str$(fnd2)
List1.AddItem Str$(lng2)
List1.AddItem Str$(sng2)
List1.AddItem Str$(rl2)
List1.AddItem st2
List1.AddItem StToDate
List1.AddItem Format$(DateToSt, "General Date")
fnd% = 9000
lng& = 800
sng! = 70.7
rl# = 60.06
st$ = "1string_string1"
fnd2 = 1
lng2 = 20
sng2 = 30.3
rl2 = 40.04
st2 = "string2_2string"
TypeTestStk$ = "stringret"
StToDate = Date
DateToSt = "January 16, 1995"
End Function
Sub VBFunctionCallCtl_CallProc (ParmPnt As Long, FunctionName As String)
'CallProc Event Code for TypeTest using fixed parm functions.